package com.sofwin.mapper;

import com.sofwin.pojo.SRoleResource;
import com.sofwin.pojo.SRoleResourceExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SRoleResourceMapper {
    int countByExample(SRoleResourceExample example);

    int deleteByExample(SRoleResourceExample example);

    int insert(SRoleResource record);

    int insertSelective(SRoleResource record);

    List<SRoleResource> selectByExample(SRoleResourceExample example);

    int updateByExampleSelective(@Param("record") SRoleResource record, @Param("example") SRoleResourceExample example);

    int updateByExample(@Param("record") SRoleResource record, @Param("example") SRoleResourceExample example);
    
    int insertParentAndChild(SRoleResource roleResource);
    
    int  deleteParentAndChild(SRoleResource roleResource);
}